/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 发送验证码请求参数
 */
@Data
@ApiModel(value = "发送验证码请求参数")
public class SendCodeDto {

    /**
     * 邮箱
     */
    @NotBlank(message = "账号不能为空")
    @ApiModelProperty(value = "账号", required = true)
    private String userName;

    /**
     * 验证码类型
     */
    @NotNull(message = "验证码类型不能为空")
    @ApiModelProperty(value = "验证码类型 0：注册 1：找回密码", required = true)
    private Integer type;

    /**
     * 接收者类型
     */
    @NotNull(message = "接收者类型不能为空")
    @ApiModelProperty(value = "接收者类型 0：邮箱 1：手机号", required = true)
    private Integer receiverType;
} 